package SrtingBuffer_;

public class Test01 {
    public static void main(String[] args) {
        //创建StringBuffer对象
        StringBuffer sb = new StringBuffer();
        //循环添加数字
        for (int i = 0; i <= 100; i++){
            sb.append(i+"，");
        }
        //删除最后一个字符
        sb.deleteCharAt(sb.length()-1);
        //输出
        System.out.println(sb);
    }
}
